<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
    td{
        height: 30px;
        width: 100px;
        text-align: center
    }
    </style>
</head>
<body>
    <div id="qq">
            <label for="exampleName">姓名：</label>
            <input type="text" class="form-control" id="exampleName" placeholder="姓名" value="李美江"><br>
            <label for="exampleName">年龄：</label>
            <input type="text" class="form-control" id="exampleNam" placeholder="年龄" value="23"><br>
            <label for="exampleName">性别：</label>
            <input type="text" class="form-control" id="exampleNa" placeholder="性别" value="女"><br>
            <button  type="submit" class="btn btn-default saveBtn">保存</button>
            <table class="table table-bordered">
                    <thead>
                        <tr>
                            <td>姓名</td>
                            <td>年龄</td>
                            <td>性别</td>
                            <td>功能</td>
                        </tr>
                    </thead>
                   
                            <thead>
                                <tr>
                                    <td>李美江</td>
                                    <td>23</td>
                                    <td>男</td>
                                    <td>
                                            <button class="delete">删除</button>
                                            <button class="edit">修改</button>
                                    </td>
                                </tr>
                            </thead>
                        </table>


    </div>
    <script>
    var a = document.querySelector('.saveBtn');
    var b = document.querySelector('.table table');
    a.onclick = function(c){
        c.preventDefault();
        var obj = {};
        obj.name = exampleName.value;
        obj.tel = exampleNam.value;
        obj.email = exampleNa.value;
        console.log(obj);
    }
    

  
    </script>  
</body>
</html>